﻿namespace ICMRemoteEdu.Forms
{
    using System;
    using System.ComponentModel;
    using System.Drawing;
    using System.Windows.Forms;

    public class ICMResultForm : Form
    {
        private Button btnFinish;
        private CheckBox cbSaveBinary;
        private CheckBox cbSaveText;
        private IContainer components;
        private Label lblResultText;

        public ICMResultForm()
        {
            this.InitializeComponent();
        }

        private void btnFinish_Click(object sender, EventArgs e)
        {
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void ICMResultForm_FormClosing(object sender, FormClosingEventArgs e)
        {
        }

        private void InitializeComponent()
        {
            this.lblResultText = new Label();
            this.cbSaveText = new CheckBox();
            this.cbSaveBinary = new CheckBox();
            this.btnFinish = new Button();
            base.SuspendLayout();
            this.lblResultText.AutoSize = true;
            this.lblResultText.Location = new Point(100, 13);
            this.lblResultText.Name = "lblResultText";
            this.lblResultText.Size = new Size(0x54, 13);
            this.lblResultText.TabIndex = 0;
            this.lblResultText.Text = "Тест завершен";
            this.cbSaveText.AutoSize = true;
            this.cbSaveText.Checked = true;
            this.cbSaveText.CheckState = CheckState.Checked;
            this.cbSaveText.Location = new Point(13, 0x2a);
            this.cbSaveText.Name = "cbSaveText";
            this.cbSaveText.Size = new Size(0x76, 0x11);
            this.cbSaveText.TabIndex = 1;
            this.cbSaveText.Text = "Сохранить ответы";
            this.cbSaveText.UseVisualStyleBackColor = true;
            this.cbSaveBinary.AutoSize = true;
            this.cbSaveBinary.Checked = true;
            this.cbSaveBinary.CheckState = CheckState.Checked;
            this.cbSaveBinary.Location = new Point(13, 0x42);
            this.cbSaveBinary.Name = "cbSaveBinary";
            this.cbSaveBinary.Size = new Size(0x8e, 0x11);
            this.cbSaveBinary.TabIndex = 2;
            this.cbSaveBinary.Text = "Выгрузить результаты";
            this.cbSaveBinary.UseVisualStyleBackColor = true;
            this.btnFinish.DialogResult = DialogResult.OK;
            this.btnFinish.Location = new Point(0x69, 90);
            this.btnFinish.Name = "btnFinish";
            this.btnFinish.Size = new Size(0x4b, 0x17);
            this.btnFinish.TabIndex = 3;
            this.btnFinish.Text = "Завершить";
            this.btnFinish.UseVisualStyleBackColor = true;
            this.btnFinish.Click += new EventHandler(this.btnFinish_Click);
            base.AutoScaleDimensions = new SizeF(6f, 13f);
            base.AutoScaleMode = AutoScaleMode.Font;
            base.ClientSize = new Size(0x11c, 0x7e);
            base.Controls.Add(this.btnFinish);
            base.Controls.Add(this.cbSaveBinary);
            base.Controls.Add(this.cbSaveText);
            base.Controls.Add(this.lblResultText);
            base.MaximizeBox = false;
            base.MinimizeBox = false;
            base.Name = "ICMResultForm";
            base.ShowIcon = false;
            base.ShowInTaskbar = false;
            base.StartPosition = FormStartPosition.CenterParent;
            this.Text = "Тест пройден";
            base.FormClosing += new FormClosingEventHandler(this.ICMResultForm_FormClosing);
            base.ResumeLayout(false);
            base.PerformLayout();
        }

        public bool CreateBinary
        {
            get
            {
                return this.cbSaveBinary.Checked;
            }
        }

        public bool CreateText
        {
            get
            {
                return this.cbSaveText.Checked;
            }
        }
    }
}

